package com.cn.lf.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by liufeng on 2018/6/14
 */
@RestController
public class ConfigClientController {

    @Value("${userName}")
    private String userName;

    @GetMapping("/getUserName")
    public String getUserName(){
        return userName;
    }

}
